package com.luweijie.mapper;

import com.luweijie.entity.MyPage;
import com.luweijie.entity.ShzwActivity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.luweijie.entity.po.ShzwActivityPo;
import com.luweijie.excel.entity.OrderExcelBO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 优惠券信息及规则表 Mapper 接口
 * </p>
 *
 * @author luweijie
 * @since 2020-06-03
 */
@Mapper
public interface ShzwActivityMapper extends BaseMapper<ShzwActivityPo> {
    @Select("select  `name` ,`like`, picture, `desc` from shzw_activity")
    List<OrderExcelBO> all();
    @Select("select  * from shzw_activity where id=#{id}")
    ShzwActivityPo a(int id);
    @Insert("INSERT INTO shzw_activity  ( id, `name`, `like`, picture, `desc`, type, `if_Login`, `status`, goods_type, goods_value, start_time, end_time, deleted )  VALUES  ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )")
    boolean b(ShzwActivityPo shzwActivityPo);
}
